$(function() {
	$('#dashBoard').DataTable({
		"processing" : true,
		"serverSide" : true,
		"dom" : 'tr<"bottom"p>',
		"ajax" : {
			"url" : window.basePath + "data/dashBoard",
			"type" : "POST",			
		},
		"language" : {
			"zeroRecords" : "无数据！",
			"infoEmpty" : "没有找到该条记录！",
			"infoFiltered" : "(共 _MAX_ 条记录)",
			"processing" : "加载中...",
			"lengthMenu" : "_MENU_ Einträge anzeigen",
			"info" : "显示第_START_ 到第 _END_条记录 （共 _TOTAL_ 条记录）",
			"infoPostFix" : "",
			"paginate" : {
				"first" : "第一页",
				"previous" : "上一页",
				"next" : "下一页",
				"last" : "最后一页"
			}
		}

	});
	$.ajax({
		url : window.basePath + "project/dashBoard",
		type : "POST",
		success : function(data) {
			$("#projectCount").html(data[0]);
			$("#deviceCount").html(data[1]);
			$("#buildingCount").html(data[2]);
			$("#targetCount").html(data[3]);
		}
	});
});